﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BusinessObjects;

namespace QuanLyHopDong
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();


        }

        private void btnThoat_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Application.Exit();
        }

        private void btnChucVu_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            ChucVuListView f = new ChucVuListView();
            f.MdiParent = this;
            f.WindowState = FormWindowState.Maximized;
            f.Show();
        }

        private void btnBoPhan_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            BoPhanListView f = new BoPhanListView();
            f.MdiParent = this;
            f.WindowState = FormWindowState.Maximized;
            f.Show();
        }

        private void btnTinhTrang_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            TinhTrangListView f = new TinhTrangListView();
            f.MdiParent = this;
            f.WindowState = FormWindowState.Maximized;
            f.Show();
        }

        private void btnNgachLuong_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            NgachLuongListView f = new NgachLuongListView();
            f.MdiParent = this;
            f.WindowState = FormWindowState.Maximized;
            f.Show();
        }

        private void btnBacLuong_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            BacLuongListView f = new BacLuongListView();
            f.MdiParent = this;
            f.WindowState = FormWindowState.Maximized;
            f.Show();
        }

        private void btnHinhThucHopDong_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            HinhThucHopDongListView f = new HinhThucHopDongListView();
            f.MdiParent = this;
            f.WindowState = FormWindowState.Maximized;
            f.Show();
        }

        private void btnLoaiNhanVien_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            LoaiNhanVienListView f = new LoaiNhanVienListView();
            f.MdiParent = this;
            f.WindowState = FormWindowState.Maximized;
            f.Show();
        }

        private void btnNamHoc_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            NamHocListView f = new NamHocListView();
            f.MdiParent = this;
            f.WindowState = FormWindowState.Maximized;
            f.Show();
        }

        private void btnHocKy_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            HocKyListView f = new HocKyListView();
            f.MdiParent = this;
            f.WindowState = FormWindowState.Maximized;
            f.Show();
        }

        private void btnNhanVien_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            NhanVienListView f = new NhanVienListView();
            f.MdiParent = this;
            f.WindowState = FormWindowState.Maximized;
            f.Show();
        }

        private void btnGiangVienThinhGiang_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            GiangVienThinhGiangListView f = new GiangVienThinhGiangListView();
            f.MdiParent = this;
            f.WindowState = FormWindowState.Maximized;
            f.Show();
        }

        private void btnQuanLyHopDong_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            QuanLyHopDongListView f = new QuanLyHopDongListView();
            f.MdiParent = this;
            f.WindowState = FormWindowState.Maximized;
            f.Show();
        }
    }
}
